package com.mingke.java.controller;


import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("grants")
public class AuthController {

    @PostMapping("authorization-codes")
    public Object active(@RequestBody AuthParams authParams) {
        System.out.println(authParams.toString());
        RRR r = new RRR(200, "OK", "authorization");
        return r;
    }


    @GetMapping("/authorization-codes/verification-code")
    public Object verify(@RequestParam("authorizationCode") String authorizationCode,
                         @RequestParam("hostInformation") String hostInformation) {
        RRR r = new RRR(200, "OK", "authorization");
        return r;
    }
}
